home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Science / RLaB / help / close < prev    next >
Text File  |  1994-04-25  |  606b  |  23 lines

  1. close:
  2.  
  3. Syntax:    close ( "filename" )
  4.  
  5. Description:
  6.  
  7.     close() takes a string as input, and attempts to close the
  8.     output stream associated with the string. close() returns TRUE
  9.     (1) if the output stream was successfully closed, FALSE (0) if
  10.     the output stream could not be closed.
  11.  
  12.     If you want to read the contents of a file that you have
  13.     created with the write() function in the present session, then
  14.     be sure to close the file before using the read function.
  15.  
  16.     Example:
  17.  
  18.     write( "eig_output", a , vec , val );
  19.     close( "eig_output" );
  20.     read( "eig_output" );
  21.  
  22. See Also: FILES printf, fprintf, read, write
  23.